/**
 * Created by Terry
 * Description:
 * User: GAOBO
 * Date: 2021-07-26
 * Time: 21:42
 */
class Person {
    public String name;
    public int age;

    public Person( ) {
        System.out.println("person");
    }

}
abstract class A {
    int a;
    public A(int a) {
        this.a = a;
    }
}
class B extends  A {

    public B(int a) {
        super(a);//如果能产生对象，就麻烦了，父类是抽象类，不能实例化
    }
}
public class TestDemo  extends Person {
    public TestDemo() {
        super();
        name = "比特";
        super.age = 10;
        System.out.println(this);
    }
    public static void main(String[] args) {
        TestDemo testDemo = new TestDemo();
    }
}